﻿using BCCommon.Extensions;
using BCCommon.TMS.Driver;
using System;

namespace BCDto.TMS.Driver.DriverExamine
{
    /// <summary>
    /// 司机考试试卷
    /// </summary>
    public class DriverExaminePaperDto
    {
        /// <summary>
        /// 试卷Id
        /// </summary>
        public long PaperId { get; set; }

        /// <summary>
        /// 正确答案数量
        /// </summary>
        public int CorrectAmount { get; set; }

        /// <summary>
        /// 答错题目数量
        /// </summary>
        public int ErrorAmount { get; set; }

        /// <summary>
        /// 创建试卷时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 答题完成时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 适用业务类型(司机、骑手)
        /// </summary>
        public DriverRoleType AppliedTo { get; set; }

        /// <summary>
        /// 适用业务类型(司机、骑手)
        /// </summary>
        public string AppliedToStr { get { return this.AppliedTo.GetDescriptionString(); } }
    }
}
